courtney brain left skegness academy to visited her gp for treatment .
she was later told to make up missed time for ` unauthorised absence '
mother criticises decision to punish her daughter as ` mind-boggling '
school claims detention was to give her best chance of good grades .